{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>系统</span>
            <span class="icon-angle-right"></span>
            <span>系统设置</span>
            <span class="icon-angle-right"></span>
            <span>网站设置</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <div class="m-tab-tit clearfix">
                <ul>
                    <li><a href="javascript:;">基本设置</a></li>
                    <li hidden><a href="javascript:;">SEO设置</a></li>
                </ul>
            </div>
            <div class="m-form mt-10">
                <form class="layui-form" id="j_form">
                    <div class="m-tab-con">
                        <table class="m-table">
                            <thead>
                                <tr>
                                    <th colspan="2">网站设置</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td width="15%"><label for="site_name">网站名称<em>*</em></label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_name]" id="site_name" placeholder="请输入网站名称" value="{$info.site_name|default=''}" /><span>如：maniac's cms</span></td>
                                </tr>
                                <tr hidden>
                                    <td><label for="site_url">网站地址<em>*</em></label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_url]" id="site_url" placeholder="请输入网站地址" value="{$info.site_url|default=''}" /><span>必须以/结尾</span></td>
                                </tr>
                                <tr hidden>
                                    <td><label for="site_icp">网站备案号</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_icp]" id="site_icp" placeholder="请输入网站备案号" value="{$info.site_icp|default=''}" /><span>如：吉 ICP 备 88888888</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td width="15%"><label for="site_admin_email">网站管理员邮箱</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_admin_email]" id="site_admin_email" placeholder="请输入网站管理员邮箱" value="{$info.site_admin_email|default=''}" /><span>如：admin@qq.com</span></td>
                                </tr>
                                <tr>
                                    <td width="15%"><label for="site_phone">客服电话</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_phone]" id="site_phone" placeholder="请输入电话" value="{$info.site_phone|default=''}" /><span>多个之间用|分隔</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td width="15%"><label for="site_qq">QQ</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_qq]" id="site_qq" placeholder="请输入QQ" value="{$info.site_qq|default=''}" /><span>多个之间用|分隔</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td width="15%"><label for="site_wechat">微信</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_wechat]" id="site_wechat" placeholder="请输入微信" value="{$info.site_wechat|default=''}" /><span>多个之间用|分隔</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td><label for="site_copyright">底部版权</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_copyright]" class="u-tarea" id="site_copyright" placeholder="请输入底部版权">{$info.site_copyright|default=''}</textarea></div></td>
                                </tr>

                                <tr style="display: none">

                                    <td><label for="site_statics">统计代码</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_statics]" class="u-tarea" id="site_statics" placeholder="请输入统计代码">{$info.site_statics|default=''}</textarea><span>如：cnzz 或百度统计。</span></div></td>
                                </tr>

                                <tr style="display: none">

                                    <td><label>PC 端网站状态</label></td>
                                    <td>
                                        <input type="radio" name="db[site_pc_status]" value="1" title="开启"{if condition="!$info || $info['site_pc_status'] eq 1"} checked{/if} />
                                        <input type="radio" name="db[site_pc_status]" value="0" title="关闭"{if condition="$info && $info['site_pc_status'] eq 0"} checked{/if} />
                                    </td>
                                </tr>

                                <tr style="display: none">

                                    <td><label>WAP 端网站状态</label></td>
                                    <td>
                                        <input type="radio" name="db[site_wap_status]" value="1" title="开启"{if condition="!$info || $info['site_wap_status'] eq 1"} checked{/if} />
                                        <input type="radio" name="db[site_wap_status]" value="0" title="关闭"{if condition="$info && $info['site_wap_status'] eq 0"} checked{/if} />
                                    </td>
                                </tr>

                                <tr style="display: none">

                                    <td><label for="site_close_txt">网站关闭原因</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_close_txt]" class="u-tarea" id="site_close_txt" placeholder="请输入网站关闭原因">{$info.site_close_txt|default=''}</textarea></div></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="m-tab-con dn">
                        <table class="m-table">
                            <thead>
                                <tr>
                                    <th colspan="2">SEO设置</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td width="15%"><label for="site_title">网站标题</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-longer" name="db[site_title]" id="site_title" placeholder="请输入网站标题" value="{$info.site_title|default=''}" /><span>如：maniac's cms</span></td>
                                </tr>
                                <tr>
                                    <td><label for="site_keywords">网站关键词</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-longer" name="db[site_keywords]" id="site_keywords" placeholder="请输入网站关键词" value="{$info.site_keywords|default=''}" /><span>多个关键字之间使用','（英文逗号）隔开，如：cms,maniac's cms. 一般 3 ~ 4 个效果最佳。</span></td>
                                </tr>
                                <tr>
                                    <td><label for="site_description">网站描述</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_description]" class="u-tarea" id="site_description" placeholder="请输入网站描述">{$info.site_description|default=''}</textarea><span>一般不超过 60 个中文字符。</span></div></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="m-form-btn"><input type="hidden" name="option_name" value="site_info" /><input type="hidden" name="id" value="2"><button id="j_btn" class="u-btn">确定提交</button></div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}